Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Poseidon2 implementation #98

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

cskiraly
Copy link

This PR adds a minimal implementation of Poseidon2 from https://eprint.iacr.org/2023/323

This code is part of the work our team did during ZKHack Lisbon 2023 to implement Poseidon2 in several languages.
The circom version of the implementation is currently limited to t=3 and the bn128 curve.
A small test is also included.

Poseidon2 paper:
@misc{cryptoeprint:2023/323,
author = {Lorenzo Grassi and Dmitry Khovratovich and Markus Schofnegger},
title = {Poseidon2: A Faster Version of the Poseidon Hash Function},
howpublished = {Cryptology ePrint Archive, Paper 2023/323},
year = {2023},
note = {\url{https://eprint.iacr.org/2023/323}},
url = {https://eprint.iacr.org/2023/323}
}

Initial implementation for ZKHack limited to t=3 and bn128 scalar field

Signed-off-by: Balazs Komuves <bkomuves@gmail.com>
Signed-off-by: Csaba Kiraly <csaba.kiraly@gmail.com>
Signed-off-by: Csaba Kiraly <csaba.kiraly@gmail.com>
Signed-off-by: Csaba Kiraly <csaba.kiraly@gmail.com>
Signed-off-by: Csaba Kiraly <csaba.kiraly@gmail.com>
piotr-roslaniec pushed a commit to piotr-roslaniec/circomlib that referenced this pull request Sep 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant